/*******************************************************
> Copyright (C) 2024 ==IOT== All rights reserved.
> File Name: array.c
> Author: IOT
> Website:www.slq.org
> Created Time: 2024年10月15日 星期二 11时05分16秒
***************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>

int main(int argc,const char* argv[])
{
	float weight1[5] = {0.0};
	float temp[100];
	float weight2[5] = {0.0};

	printf("%p, %p\n", weight1, &weight1[0]);
	printf("%p, %p\n", weight1 + 3, &weight1[3]);
	return 0;

	printf("%p,%p,%p,%p\n", weight1, weight2, temp, temp + 100);
	for (int i = 0;i < 100;i++) {
		temp[i] = 30.1;
	}

	temp[100] = 20.8;

	weight1[8] = 20.8;
	weight1[9] = 20.8;
	weight1[10] = 20.8;

	printf("%.1f, %.1f, %.1f\n", temp[0], temp[100], weight2[0]);
    return 0;
}
